import java.util.Scanner;
public class Client {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        String strBuilder= scanner.next();
        try {
            Class c=Class.forName(strBuilder);
            ModeBuilder mb=(ModeBuilder)c.newInstance();
            /********** Begin *********/
            ScreenModeController smc = new ScreenModeController();
            smc.setModeBuilder(mb);
            MainScreen screen = smc.construct();
            /********** End *********/
            System.out.println("菜单："+screen.getMenu());
            System.out.println("播放列表："+screen.getPlayList());
            System.out.println("主窗口："+screen.getMainWindow());
            System.out.println("控制条："+screen.getControlBar());
        }catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}







